Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODTypeListIterator


First

The First method begins the iteration and returns a copy of the first element in the type list that created this type-list iterator.

ODType First ();
return value
A copy of the first element in the type list, or kODNULL if the type list is empty.
DISCUSSION
Your part must call this method before calling this type-list iterator's IsNotComplete method for the first time. This method may be called multiple times; each time resets the iteration.

It is your responsibility to deallocate the returned type value when it is no longer needed.

EXCEPTIONS
kODErrIteratorOutOfSync
The type list was modified while the iteration was in progress.
kODErrOutOfMemory
There is not enough memory to create the type.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help